<?php
namespace app\common\lib;

class Redis
{
    /**
     * 给rediskey添加前缀并返回
     * @var string
     */
    public static $sms = 'sms_';
    public static $pre = 'user_';
    public static function smsKey($phone)
    {
        return self::$sms.$phone;
    }
    public static function userKey($phone)
    {
        return self::$pre.$phone;
    }
}